<%--
  Created by IntelliJ IDEA.
  User: 若兮
  Date: 2021/12/27
  Time: 18:36
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>用户修改</title>
    <link rel="stylesheet" href="bootstrap/css/bootstrap.min.css">
    <link rel="stylesheet" href="layui/css/layui.css">
</head>
<body class="layui-anim layui-anim-downbit">
<form class="layui-form" action="${pageContext.request.contextPath}/editUser" method="post">
    <input type="hidden" name="id" value="${requestScope.user.id}">
    <div class="layui-form-item">
        <label class="layui-form-label">用户名</label>
        <div class="layui-input-inline">
            <input type="text" id="uname" name="uname" value="${requestScope.user.username}" required minlength="2" maxlength="10" lay-verify="required"
                   placeholder="请输入用户名" autocomplete="off"
                   class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">密码</label>
        <div class="layui-input-inline">
            <input type="text" id="pwd" name="pwd" value="${requestScope.user.password}" required minlength="2" maxlength="10" lay-verify="required"
                   placeholder="请输入密码" autocomplete="off"
                   class="layui-input">
        </div>
        <div class="layui-form-item">
            <button class="layui-btn" lay-submit style="margin-left: 20px;margin-top: 10px">立即提交</button>
            <a class="layui-btn" href="${pageContext.request.contextPath}/showAllUserByPage" style="margin-top: 10px;text-decoration: none">返回</a>
        </div>
    </div>
</form>
<script type="text/javascript" src="js/jquery-3.6.0.js"></script>
<script type="text/javascript" src="layui/layui.js"></script>
<script type="text/javascript" src="bootstrap/js/bootstrap.min.js"></script>
</body>
</html>
